package com.erbao.io.netty.refactor.transport;

import io.netty.channel.socket.nio.NioSocketChannel;

public class ClientPool {
    NioSocketChannel[] clients;
    Object[] locks;

    /**
     *
     * @param size 线程池大小
     */
    public ClientPool(int size) {
        clients = new NioSocketChannel[size];
        locks = new Object[size];

        for (int i = 0; i < size; i++) {
            locks[i] = new Object();

        }
    }
}
